package cn.tt.core.config;

import com.baomidou.mybatisplus.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Description MybatisPlus配置
 * 		1)如果需要自动扫描Mapper，配置@MapperScan("cn.tt.moudles.sys.mapper*")即可，*Mapper.java就不需要注入@Mapper
 * 		2)如果不自动扫描，只需要在Mapper.java文件注解@Mapper即可，也很方便
 * @Date 2017/7/29 16:24
 * @Since v1.7
 * @Autor Nick
 */
@Configuration
public class MybatisPlusConfig {

	@Bean
	public PaginationInterceptor paginationInterceptor() {
		return new PaginationInterceptor();
	}

}
